﻿using System.Collections.Generic;

namespace Webbness.Mvc.Extensions
{
    public class Feedback
    {
        public Feedback()
        {
            Errors = new List<string>();
        }

        public Feedback(string successMessage)
        {
            Errors = new List<string>();
            SuccessMessage = successMessage;
        }

        public List<string> Errors { get; set; }

        public bool Successfull
        {
            get { return Errors.Count == 0; }
        }

        public string SuccessMessage { get; set; }
    }
}